package com.qf.ssm.service;

import com.qf.ssm.entity.Commodity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommodityService{


    int deleteByPrimaryKey(Integer cId);

    int insert(Commodity record);

    int insertSelective(Commodity record);

    Commodity selectByPrimaryKey(Integer cId);

    int updateByPrimaryKeySelective(Commodity record);

    int updateByPrimaryKey(Commodity record);

    int updateState(int id);
    int updateStateList( List<Integer> ids);
    int deleteList( List<Integer> ids);
    int setNewCommodity(Commodity commodity);

    List<Commodity> queryGoods(String goodsName,String goodsType);

}
